#include "MyButton.h"

MyButton::MyButton(int w, int h)
{

	initgraph(w, h);
}
MyButton::~MyButton()
{
}

void MyButton::setGeometrySize(int posX, int PosY, int w, int h)
{
	sb.x = posX;
	sb.y = PosY;
	sb.x1 = w;
	sb.y1 = h;
	rectangle(posX, PosY, w, h);
}

void MyButton::setButmode()
{
	setbkmode(TRANSPARENT);
}

void MyButton::setButTextCol()
{
	settextcolor(BLUE);
}

void MyButton::setButShowPos(string s)
{

	outtextxy(sb.x + 10, sb.y + 10, "button"); // ������ʾλ��
}
